package com.selfdriving.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class Home extends Entity implements Parcelable
{
	String id;
	String img;

	public Home(String id, String img)
	{
		super();
		this.id = id;
		this.img = img;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getImg()
	{
		return img;
	}

	public void setImg(String img)
	{
		this.img = img;
	}

	@Override
	public int describeContents()
	{
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		// TODO Auto-generated method stub
		dest.writeString(this.id);
		dest.writeString(this.img);
	}

	public static final Parcelable.Creator<Home> CREATOR = new Parcelable.Creator<Home>()
	{

		@Override
		public Home createFromParcel(Parcel source)
		{
			return new Home(source.readString(), source.readString());
		}

		@Override
		public Home[] newArray(int size)
		{
			return new Home[size];
		}
	};

}
